
<include file="./Application/Admin/View/_meta.html" />
<include file="./Application/Admin/View/_header.html" />
<include file="./Application/Admin/View/_menu.html" />

<section class="Hui-article-box">
    <nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
        <span class="c-gray en">&gt;</span>
        资讯管理
        <span class="c-gray en">&gt;</span>
        资讯列表
        <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
    </nav>
    <div class="Hui-article">
        <article class="cl pd-20">

            <div class="cl pd-5 bg-1 bk-gray mt-20">
				<span class="l">
				<a class="btn btn-primary radius" data-title="添加商户" _href="mchAdd.html" onclick="location.href='mchAdd.html'" href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 添加商户</a>
				</span>
                <span class="r">共有项目：<strong>{$CountSum}</strong>个</span>
            </div>
            <div class="mt-20">
                <table class="table table-border table-bordered table-bg table-hover table-sort">
                    <thead>
                    <tr class="text-c">
                        <th width="50">ID</th>
                        <th width="80">商户号</th>
                        <th width="80">商户秘匙</th>
                        <th width="80">项目名称</th>
                        <th width="100">总充值</th>
                        <th width="120">最后交易成功时间</th>
                    </tr>
                    </thead>
                    <tbody>
                <foreach name="userlist" item="userlistS" key="key">
                    <tr class="text-c">
                        <td>{$key + 1}</td>
                        <td>{$userlistS.merchant_id}</td>
                        <td>
                            <?php echo substr_replace($userlistS['merchant_key'],substr($userlistS['merchant_key'],-6) . '******',6); ?>
                        </td>
                        <td>{$userlistS.userremarks}</td>
                        <td>{$userlistS.money}</td>
                        <td>
                            <if condition="$userlistS.last_time neq ''">
                                <?php echo date('Y-m-d H:i:s', $userlistS['last_time']);  ?>
                            <else />
                                该商户号暂无交易
                            </if>
                        </td>
                        <!--<td class="td-status"><span class="label label-success radius">已发布</span></td>-->
                    </tr>
                </foreach>
                    </tbody>
                </table>

            </div>
        </article>
    </div>
</section>

<include file="./Application/Admin/View/_footer.html" />

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="__ADMIN__/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="__ADMIN__/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="__ADMIN__/lib/laypage/1.2/laypage.js"></script>
</body>
</html>